
#include <Length.h>

Length::Length(int amount, const LengthUnit* unit):Measurement(amount, unit)
{
}

Length Length::operator+(Length &length)
{
    int amount = amount_m + length.amount_m;
    return Length(amount, BASE_LENGTH_UNIT);
}

void Length::output(std::ostream& stream, const Unit* unit)
{
    LengthUnit::output(amount_m, stream, unit);
}

